package com.fcat.common.user.service;

import com.alibaba.fastjson.JSONObject;
import com.fcat.springboot.mybatis.service.TsuantoneBaseService;
import com.fcat.common.user.entity.Organization;
import com.fcat.common.user.vo.OrganizationSearchVO;
import com.fcat.common.user.vo.OrganizationVO;

import java.util.List;
import java.util.Map;

public interface OrganizationService extends TsuantoneBaseService<Organization> {

    JSONObject getTreeByUsername(String username);

    List<OrganizationVO> getOrganizationTree(Map<String,Object> map);

    List<Long> getIdsByPrentId(Long organizationId);

    List<OrganizationSearchVO> search(String keyword,Long companyId,String username);

    List<OrganizationVO> getTreeByCompanyId(Long companyId,String username) ;

    JSONObject searchByIdAndType(Long id, String type,Long companyId,String username);
}